package org.sooth.task.test;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @hibernate.class table="users" lazy="false"
 */

public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    protected int userId = 0;
    protected String username = new String();
    protected String password = new String();
    protected int rating = 0;
    protected String name = new String();
    protected int juridicalForm = 0;
    protected String city = new String();
    protected String address = new String();
    protected int idx = 0;
    protected String tel = new String();
    protected String fax = new String();
    protected String email = new String();
    protected String rschet = new String();
    protected String kschet = new String();
    protected String bank = new String();
    protected String bik = new String();
    protected String director = new String();
    protected String buhgalter = new String();
    protected String kpp = new String();
    protected String inn = new String();
    protected String route = new String();
    protected String logo = new String();
    protected String banner = new String();
    protected String website = new String();
    protected int shownContacts = 0;
    protected byte notification = 0;
    protected String photo = new String();
    protected String diploma = new String();

    protected Set types = new HashSet();
    protected Set categories = new HashSet();
    protected Set status = new HashSet();


    /**
     * @hibernate.property column="address"
     */
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @hibernate.property column="bank"
     */
    public String getBank() {
        return bank;
    }
    public void setBank(String bank) {
        this.bank = bank;
    }

    /**
     * @hibernate.property column="banner"
     */
    public String getBanner() {
        return banner;
    }
    public void setBanner(String banner) {
        this.banner = banner;
    }

    /**
     * @hibernate.property column="bik"
     */
    public String getBik() {
        return bik;
    }
    public void setBik(String bik) {
        this.bik = bik;
    }

    /**
     * @hibernate.property column="buhgalter"
     */
    public String getBuhgalter() {
        return buhgalter;
    }
    public void setBuhgalter(String buhgalter) {
        this.buhgalter = buhgalter;
    }

    /**
     * @hibernate.set table="users_categories" cascade="all-delete-orphan" lazy="false"
     * @hibernate.collection-key column="user_id"
     * @hibernate.collection-many-to-many class="com.vetportal.hibernate.taxonomy.Category" column="category_id"
     */
    public Set getCategories() {
        return categories;
    }
    public void setCategories(Set categories) {
        this.categories = categories;
    }

    /**
     * @hibernate.property column="city"
     */
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @hibernate.property column="director"
     */
    public String getDirector() {
        return director;
    }
    public void setDirector(String director) {
        this.director = director;
    }

    /**
     * @hibernate.property column="email"
     */
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @hibernate.property column="fax"
     */
    public String getFax() {
        return fax;
    }
    public void setFax(String fax) {
        this.fax = fax;
    }

    /**
     * @hibernate.property column="idx"
     */
    public int getIdx() {
        return idx;
    }
    public void setIdx(int idx) {
        this.idx = idx;
    }

    /**
     * @hibernate.property column="inn"
     */
    public String getInn() {
        return inn;
    }
    public void setInn(String inn) {
        this.inn = inn;
    }

    /**
     * @hibernate.property column="juridical_form"
     */
    public int getJuridicalForm() {
        return juridicalForm;
    }
    public void setJuridicalForm(int juridicalForm) {
        this.juridicalForm = juridicalForm;
    }

    /**
     * @hibernate.property column="kpp"
     */
    public String getKpp() {
        return kpp;
    }
    public void setKpp(String kpp) {
        this.kpp = kpp;
    }

    /**
     * @hibernate.property column="kschet"
     */
    public String getKschet() {
        return kschet;
    }
    public void setKschet(String kschet) {
        this.kschet = kschet;
    }

    /**
     * @hibernate.property column="logo"
     */
    public String getLogo() {
        return logo;
    }
    public void setLogo(String logo) {
        this.logo = logo;
    }

    /**
     * @hibernate.property column="name"
     */
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @hibernate.property column="notification"
     */
    public byte getNotification() {
        return notification;
    }
    public void setNotification(byte notification) {
        this.notification = notification;
    }

    /**
     * @hibernate.property column="password"
     */
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @hibernate.property column="rating"
     */
    public int getRating() {
        return rating;
    }
    public void setRating(int rating) {
        this.rating = rating;
    }

    /**
     * @hibernate.property column="route"
     */
    public String getRoute() {
        return route;
    }
    public void setRoute(String route) {
        this.route = route;
    }

    /**
     * @hibernate.property column="rschet"
     */
    public String getRschet() {
        return rschet;
    }
    public void setRschet(String rschet) {
        this.rschet = rschet;
    }

    /**
     * @hibernate.property column="shown_contacts"
     */
    public int getShownContacts() {
        return shownContacts;
    }
    public void setShownContacts(int shownContacts) {
        this.shownContacts = shownContacts;
    }

    /**
     * @hibernate.set table="users_status" cascade="all-delete-orphan" lazy="false"
     * @hibernate.collection-key column="user_id"
     * @hibernate.collection-many-to-many class="com.vetportal.hibernate.taxonomy.Status" column="status_id"
     */
    public Set getStatus() {
        return status;
    }
    public void setStatus(Set status) {
        this.status = status;
    }

    /**
     * @hibernate.property column="tel"
     */
    public String getTel() {
        return tel;
    }
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * @hibernate.set table="users_types" cascade="all-delete-orphan" lazy="false"
     * @hibernate.collection-key column="user_id"
     * @hibernate.collection-many-to-many class="com.vetportal.hibernate.taxonomy.Type" column="type_id"
     */
    public Set getTypes() {
        return types;
    }
    public void setTypes(Set types) {
        this.types = types;
    }

    /**
     * @hibernate.id column="user_id" generator-class="increment"
     */
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }

    /**
     * @hibernate.property column="username"
     */
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @hibernate.property column="website"
     */
    public String getWebsite() {
        return website;
    }
    public void setWebsite(String website) {
        this.website = website;
    }

    /**
     * @hibernate.property column="diploma"
     */
    public String getDiploma() {
        return diploma;
    }
    public void setDiploma(String diploma) {
        this.diploma = diploma;
    }

    /**
     * @hibernate.property column="photo"
     */
    public String getPhoto() {
        return photo;
    }
    public void setPhoto(String photo) {
        this.photo = photo;
    }
}